﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.IManager;
using System.Data;
using Entity;
using DataAccess.Service;
using DataAccess.IService;
using System.Collections;

namespace Business.Manager
{
    public class ChartManager : IChartManager
    {
        IChartService chartService = new ChartService();
        public DataSet getAcademyStatisticInfo()
        {
            return chartService.getAcademyStatisticInfo();
        }

        public DataSet getAcademyStatisticInfo(String acaId)
        {
            return chartService.getAcademyStatisticInfo(acaId);
        }

        public DataSet getMajorStatisticInfo(String acaId, String majId)
        {
            return chartService.getMajorStatisticInfo(acaId, majId);
        }

        public DataSet getGradeStatisticInfo(String acaId, String majId, String grade)
        {
            String para = null;
            para = majId + grade;
            return chartService.getGradeStatisticInfo(para);
        }

        public DataSet getClassStatisticInfo(String classNum)
        {

            return chartService.getClassStatisticInfo(classNum);
        }
    }
}
